home *** CD-ROM | disk | FTP | other *** search
- Path: colossus.holonet.net!starnet!warren.porter
- From: warren.porter@starnetbbs.com (Warren Porter)
- Newsgroups: comp.lang.c
- Subject: Re: Passing arguments when de
- Date: Tue, 16 Jan 1996 21:46:00 GMT
- Message-ID: <96011707352720243@starnetbbs.com>
- Organization: StarNet BBS & Services 601.981.9228
- Distribution: world
- References: <DL2vJ6.M2F@novice.uwaterloo.ca>
-
- 01/16/96 03:41 pm
-
- JC│From: jching@novice.uwaterloo.ca (Jonathan Ching)
- JC│Subject: Passing arguments when debugging with dbx
-
-
- JC│For example, if my program takes two arguments like:
- JC│
- JC│myprogram arg1 arg2
- JC│
- JC│How would I put arg1 and arg2 on the command line when I invoke
- JC│dbx without dbx thinking that they were arguments for dbx?
-
- Many times I wished I could have done that. A few workarounds:
- work on a copy of your program where all the options are hardcoded
- or prepare to read options as environment variables, modified with
- the SET command. Good luck.
- ---
- ■ SPEED 2.00 #1672 ■ Command failed: (A)bort, (R)etry, (F)orget it happened?
-